//
//  KKCollectDocumentCell.m
//  DoMi
//
//  Created by 康凯 on 2016/11/21.
//  Copyright © 2016年 kk. All rights reserved.
//

#import "KKCollectDocumentCell.h"

@implementation KKCollectDocumentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.containerView.layer.shadowOffset=CGSizeMake(0, 0);
    self.containerView.layer.shadowOpacity=0.8;
    self.containerView.layer.shadowColor=[UIColor grayColor].CGColor;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)initData:(KKCollectDocumentM *)data{
    self.title.text=data.title;
    self.time.text=data.collecttime;
    self.content.text=@"";
}
-(void)initMsgData:(KKMessageM *)msg{
    self.title.text=msg.title;
    self.content.text=msg.context;
    self.time.text=msg.msgtime;
    self.time.textColor=[UIColor colorWithHexString:@"1951A1"];
}
-(void)initQuestionData:(KKMyXuanShangM *)question{
    self.title.text=question.title;
    self.time.text=question.startdate;
    self.content.text=@"";
    self.time.textColor=[UIColor colorWithHexString:@"1951A1"];
}
-(void)initUploadData:(KKCollectDocumentM *)data{
    self.title.text=data.title;
    self.time.text=data.systime;
    self.content.text=@"";
}
-(void)initDraftData:(KKCollectDocumentM *)msg{
    self.title.text=msg.title;
    self.content.text=@"";
    self.time.text=msg.systime;
}
@end
